<div class="row">
  <div id="breadcrumb" class="col-md-12">
    <ol class="breadcrumb">
      <li><a ui-sref="layout.main">主页</a></li>
      <li><a ui-sref="layout.list.dept">部门列表</a></li>
      <li><a href="javascript:;">部门详细信息</a></li>
    </ol>
  </div>
</div>
<div class="well" style="background-color: #FFFFFF;">
  <div class="row">
    <div class="col-xs-12">
      <h3 ng-bind="deptItem.dept_name"></h3>
    </div>
  </div>
  <hr />
  <div class="row">
    <div class="col-xs-12">
      <form class="form-horizontal">
        <div class="form-group">
          <label class="col-sm-2 control-label">id</label>
          <div class="col-sm-10">
            <input type="text" ng-model="deptItem.id" class="form-control" ng-disabled="true">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">部门名称</label>
          <div class="col-sm-10">
            <input type="text" ng-model="deptItem.dept_name" class="form-control" ng-disabled="update">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">部门简介</label>
          <div class="col-sm-10">
            <div ng-if="update" ng-bind-html="deptItem.dept_desc"></div>
            <div text-angular ng-model="deptItem.dept_desc"
                  name="demo-editor"
                  ng-if="!update">
            </div>
          </div>
        </div>
        <div class="form-group">
          <div class="col-xs-2"></div>
          <div class="col-xs-2">
            <button class="btn btn-block btn-success" ng-click="modify()" ng-if="!update">确认修改</button>
          </div>
          <div class="col-xs-2">
            <input class="btn btn-block btn-danger" ng-click="toggleUpdate()" type="button" ng-if="!update" value="取消" />
          </div>
        </div>
      </form>
    </div>
  </div>
  <div class="row">
    <div class="col-xs-3" ng-if="user.usr_status != 3">
      <input class="btn btn-block btn-info" ng-click="toggleUpdate()" type="button" ng-if="update" value="点击修改" />
    </div>
  </div>
</div>
